import request from '@/utils/request'

// 查询外部通讯录列表
export function bookList(query) {
  return request({
    url: '/system/book/list',
    method: 'get',
    params: query
  })
}

export function bookAdd(data) {
  return request({
    url: '/system/book',
    method: 'post',
    data: data
  })
}
export function bookEdit(data) {
  return request({
    url: '/system/book',
    method: 'put',
    data: data
  })
}
export function bookDel(data) {
  return request({
    url: '/system/book/' + data,
    method: 'DELETE',
    data: data
  })
}